home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000891_simon@lia.di.epfl.ch_Mon Aug 29 05:22:07 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  2KB

  1. Received: from liasg5.epfl.ch by cs.umb.edu with SMTP id AA25043
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Mon, 29 Aug 1994 05:22:07 -0400
  3. Received: by liasg5.epfl.ch (Smail3.1.28.1 #160)
  4.     id m0qf2pW-0004kZC; Mon, 29 Aug 94 11:16 MET DST
  5. Message-Id: <m0qf2pW-0004kZC@liasg5.epfl.ch>
  6. Date: Mon, 29 Aug 94 11:16 MET DST
  7. From: simon@lia.di.epfl.ch (Simon Leinen)
  8. To: tex-k@cs.umb.edu
  9. Subject: Re: [djm@Glue.umd.edu: R6 libraries]
  10. In-Reply-To: <9408270423.AA11488@uluru.Stanford.EDU>
  11. References: <199408262141.AA05735@terminus.cs.umb.edu>
  12.     <9408270423.AA11488@uluru.Stanford.EDU>
  13.  
  14. The problem with the -lnsl library is that its contents are quite
  15. different from system to system.
  16.  
  17. On SunOS 4.x you only need it if you want to use the TLI (t_...)  calls,
  18. i.e. never.  It is provided as a static (.a) library only.  There is no
  19. reason to use it, but it shouldn't do any harm either, because nothing
  20. will be linked in from -lnsl if you don't need it.
  21.  
  22. On Solaris 2.x all X programs need it, because -lX11 uses TLI to connect
  23. to the X server.  They also put the XDR/RPC/NIS routines into -lnsl.  If
  24. you use sockets, you need -lsocket and -lnsl, I think, because -lsocket
  25. uses -lnsl.  It is installed on all systems, because most programs that
  26. use networking need -lnsl.
  27.  
  28. On IRIX 5.x, -lnsl is part of the optional subsystem eoe1.sw.svr4net
  29. (System V Release 4 Networking).  It contains TLI (which isn't necessary
  30. for X programs here).  It also contains alternative versions of some
  31. routines that are usually found in libc.so.  Linking with -lnsl should
  32. be avoided IMHO, since (1.) it will make the generated program unusable
  33. on machines that don't have eoe1.sw.svr4net installed (it is not
  34. installed by default), and (2.) some of the alternative functions in
  35. -lnsl don't work like expected.  For example, when -lnsl is used,
  36. getpwnam() (from libc!) returns an error ("Socket operation on
  37. non-socket") when trying to access NIS.
  38.  
  39. This is only for the three OSes that are in use at my lab.
  40. -- 
  41. Simon.